package o;

import android.content.Context;
import android.os.RemoteException;
import com.huawei.appmarket.framework.coreservice.DataHolder;
import com.huawei.appmarket.framework.coreservice.Status;
import com.huawei.appmarket.service.distribution.authentication.bean.AgdSecurityVerificationRequest;
import com.huawei.appmarket.service.externalservice.distribution.download.request.StartDownloadV2IPCRequest;
import com.huawei.appmarket.service.externalservice.distribution.download.response.TaskOperationResponse;

public class dzh implements dhe<StartDownloadV2IPCRequest, TaskOperationResponse> {
    public void ˊ(Context context, DataHolder<StartDownloadV2IPCRequest> dataHolder, dgz o_dgz) throws RemoteException {
        if (doo.ˊ(context)) {
            dzg.ˏ(new dxn(dataHolder));
            if ((((StartDownloadV2IPCRequest) dataHolder.ˊ()).ˎ() & 2) != 0) {
                new dxp(context, ॱ(), o_dgz).ॱ(new dxn(dataHolder));
                return;
            }
            dxn o_dxn = new dxn(dataHolder);
            cvt ˏ = AgdSecurityVerificationRequest.ˏ(o_dxn, context);
            ˏ.ʽ(1);
            dxv o_dxv = new dxv(context, o_dxn, o_dgz, ॱ());
            o_dxv.ˊ(ˏ.ʼ());
            cfw.ˎ(ˏ, new dxg(o_dxv));
            return;
        }
        Status status = new Status();
        status.ˋ(7);
        o_dgz.ॱ(status);
        Logger.ˎ("StartDownloadV2Process", "have No network");
    }

    public TaskOperationResponse ॱ() {
        return new TaskOperationResponse();
    }
}
